package common.string;

import org.junit.Test;

public class OperationString {


    @Test
    public void testMain(){
        String s_tmp="//DIV[@action-type][not(@feedtype)][@mid]//DIV[@class='WB_detail']/DIV[@class='WB_from S_txt2']/A[@class='S_txt2'][1]/@href";

        if(s_tmp.contains("[@mid]")) {
            System.out.println(s_tmp.replace("[@mid]", "[@mid][1]"));
        }
    }
}
